import axios from '@/api/common.js'

// 获取商品列表数据
export const getGoodsList = (data) => {
  return axios({
    url: 'goods',
    params: data
  })
}
// 添加商品
export const addNewGoods = (data) => {
  return axios({
    url: 'goods',
    method: 'post',
    data
  })
}
// 商品数据列表
export const getCateList = (type) => {
  return axios({
    url: 'categories',
    params: { type }
  })
}
